package com.vsked.util;

public class SqlProcess {
	public static String getFindAllMethod(String inTableName){
		return "select * from "+inTableName;
	}
	
	public static String getInsertSqlColumn(String inSql){
		return inSql.substring(inSql.indexOf("(")+1,inSql.indexOf(" values")-1);		
	}
	
	public static void main(String[] args) {
		//System.out.println(getFindAllMethod("TbUsers"));
		String sql="";
		sql="insert into insert into tb_price(priceType,priceValue) values(?,?)";
		String[] tempStr=getInsertSqlColumn(sql).split(",");
		for(int i=0;i<tempStr.length;i++)
			System.out.println(tempStr[i]);
	}

}
